﻿<%@ Page Title="Learning your taste.." Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Learning.aspx.cs" Inherits="LikeUsWebSite.Learning" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Tiny Quiz...
    </h2>
    <p>
        For better matching of your favorites movies please rate the movies below.
    </p>
    <table cellpadding="5"><tr><td>
    <asp:DataGrid ID="DataGrid1" Runat="server" AutoGenerateColumns="False" 
            CellPadding="2" DataKeyField="idmovies" EditItemStyle-BackColor="#F7F7F7"  BorderColor="white"
            HeaderStyle-BackColor="#F7F7F7" HorizontalAlign="left">
            <FooterStyle BackColor="PaleGoldenrod" />
            <SelectedItemStyle BackColor="Control" />
            <EditItemStyle BackColor="#F7F7F7" />
            <ItemStyle BackColor="White" Font-Size="8"/>
            <HeaderStyle BackColor="White" Font-Bold="true"/>
            <Columns>
             <asp:TemplateColumn >
                <HeaderStyle Width="10px" />
                <ItemTemplate>
					<b><%# Container.ItemIndex+1%></b>
				</ItemTemplate>
            </asp:TemplateColumn>
                <asp:TemplateColumn>
                    <HeaderStyle Width="100px" />
                    <ItemTemplate>
					<%# DataBinder.Eval(Container.DataItem, "name")%>
					</ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>
        </td>
        <td>
        <table><tr><td colspan="10">
            <asp:Label runat="server" ID="lbMovieName" Font-Size="Large"></asp:Label></td>
            </tr>
            <tr>
            <td colspan="10">
            <asp:Image runat="server" ID="image" height="200"/>
            </td>
            </tr>
            <tr>
            <td><input type="radio" name="rat" value="1"/><br />1</td>
            <td><input type="radio" name="rat" value="2"/><br />2</td>
            <td><input type="radio" name="rat" value="3"/><br />3</td>
            <td><input type="radio" name="rat" value="4"/><br />4</td>
            <td><input type="radio" name="rat" value="5"/><br />5</td>
            <td><input type="radio" name="rat" value="6"/><br />6</td>
            <td><input type="radio" name="rat" value="7"/><br />7</td>
            <td><input type="radio" name="rat" value="8"/><br />8</td>
            <td><input type="radio" name="rat" value="9"/><br />9</td>
            <td><input type="radio" name="rat" value="10"/><br />10</td>
            </tr>
            <tr>
            <td colspan="10">
            <asp:Button ID="Continue" runat="server" onclick="continue_Click" Text="Continue" BorderStyle="None" BackColor="#4b6c9e" ForeColor="White"/>
                <asp:Label ID="messageLabel" runat="server" ForeColor="#CC0000"></asp:Label>
            </td>
           </tr>
        </table>
        </td>
        <td valign="top">
        <h4>Summary:</h4>
        <asp:Label ID="summary" runat="server"></asp:Label>
        </td>
        </tr>        
     </table>
       <br />
       <p align="right">
     <asp:Button ID="skip" runat="server" onclick="skip_Click" Text="Skip" BorderStyle="None" BackColor="#4b6c9e" ForeColor="White"/>
     </p>
</asp:Content>
